using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class attackleft : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024256 : GenericGenerator<WaitForSeconds>
	{
		internal attackleft _0024self__0024258;

		public _0024find_0024256(attackleft self_)
		{
			_0024self__0024258 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024258);
		}
	}

	public AudioClip clip;

	public attackring attackring;

	public GUITexture gui;

	public ddload ddload;

	public Texture pressed;

	public Texture unpressed;

	public void Start()
	{
		gui = gameObject.GetComponent<GUITexture>();
		StartCoroutine(find());
	}

	public void Update()
	{
		if (UnityEngine.Input.touchCount > 0)
		{
			Touch touch = Input.touches[0];
			if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
			{
				attackring.leftarrow = true;
				AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
				gui.texture = pressed;
				attackring.state--;
				attackring.change();
				ddload.state = attackring.state;
			}
		}
		if (UnityEngine.Input.touchCount == 0)
		{
			gui.texture = unpressed;
		}
	}

	public IEnumerator find()
	{
		return new _0024find_0024256(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
